package com.harbintransport.backend.model;

import javax.persistence.*;

@Entity
@Table(name = "bus_rush_hour_traffic")
@IdClass(BusRushHourTrafficId.class)
public class BusRushHourTraffic {

    @Id
    @Column(name = "station_name")
    private String stationName;

    @Id
    @Column(name = "time")
    private String time;

    @Column(name = "onboard")
    private int onboard;

    @Column(name = "offboard")
    private int offboard;

    // Getters and Setters
    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getOnboard() {
        return onboard;
    }

    public void setOnboard(int onboard) {
        this.onboard = onboard;
    }

    public int getOffboard() {
        return offboard;
    }

    public void setOffboard(int offboard) {
        this.offboard = offboard;
    }
}